import request from "@/utils/request";


export function getMyFavoriteAPI(data){
    return request({
        url:'/user/getMyFavorite',
        method:'GET',
        params:data
    })
}

export function addMyFavoriteAPI(id){
    return request({
        url:'/user/addMyFavorite/'+id,
        method:'PUT',
    })
}

export function findFavoriteAPI(id){
    return request({
        url:'/user/findFavorite/'+id,
        method:'GET',
    })
}


export function deleteMyFavoriteAPI(ids){
    return request({
        url:'/user/deleteMyFavorite/'+ids,
        method:'DELETE',
    })
}

